/**
 * Created by Administrator on 2017/5/14.
 */
var entries = [
    {
        "term": "CALAMITY",
        "part": "n.",
        "definition": "A more than commonly plain and..."
    },
    {
        "term": "CANNIBAL",
        "part": "n.",
        "definition": "A gastronome of the old school who..."
    },
    {
        "term": "CHILDHOOD",
        "part": "n.",
        "definition": "The period of human life intermediate..."
    }
];

var html = [];

$.each(entries, function () {
    html = html.concat([
        '<div class="entry">',
        '<h3 class="term">', this.term, '</h3>',
        '<div class="part">', this.part, '</div>',
        '<div class="definition">', this.definition, '</div>',
        '</div>'
    ]);
});

$('#dictionary').html(html.join(''));